package com.bite.order.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RefreshScope
@RestController
@RequestMapping("consul")
public class ConsulController {
    @Value("${service-name}")
    private String service_name;
    @Value("${output.info}")
    private String output_info;

    @RequestMapping("getConfigByConsul")
    private String getConfigByConsul() {
        return "service_name: " + service_name + "output_info: " + output_info;
    }
}
